#ifndef OBJECTIVE_H
#define OBJECTIVE_H

#include "object.h"

class Arena;

class Objective : public Object
{
public:

    float angle;
    float rot;
    float rotacc;
    float rotfriction;
    int health;
    int firing_range;
    bool firing;
    bool aiming;
    int aiming_angle;
    int iteration;
    bool alive;

    Arena* arena;

    Objective();
    void fire();
    void hit(int val);
    void purge();
    void control();
    void physics();
    void step();
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *,QWidget *);
    QRectF boundingRect() const;
};

#endif // OBJECTIVE_H
